Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix if condition if one of the nodes is undefined while the operator is Or and the other node is true #164

Conversation

Mido-sys
Copy link
Contributor

Fix for issue #157

@Mido-sys
Copy link
Contributor Author

@sio4, just a kind reminder :)

@sio4
Copy link
Member

sio4 commented Sep 29, 2022

@sio4, just a kind reminder :)

Sorry for that. I couldn't make a time today. Will check as soon as possible!

@Mido-sys
Copy link
Contributor Author

@sio4, no worries!! Thanks, the Timezone difference makes it hard :)

@sio4 sio4 linked an issue Oct 1, 2022 that may be closed by this pull request
Copy link
Member

@sio4 sio4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @Mido-sys!

It looks good to me, but it also seems to be improved some more points in the function and the other test case. I will take care of that part after mering this PR.

Thanks!

@sio4 sio4 self-assigned this Oct 1, 2022
@sio4 sio4 added the bug Something isn't working label Oct 1, 2022
@sio4 sio4 added this to the v4.1.16 milestone Oct 1, 2022
@sio4 sio4 merged commit bc8587c into gobuffalo:main Oct 1, 2022
@sio4
Copy link
Member

sio4 commented Oct 1, 2022

Hi @Mido-sys,

FYI, I found some issues (side effects) on this PR while I review the method to improve the efficiency, and filed a PR (#166) to fix the issue. The main difference between those two approaches is that yours is more focused on the value, but mine is focused on the operations.

Just wanted to let you know about the change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't evaluate if conditions properly with an undefined variable
2 participants